using System;
using System.Drawing;

namespace CRC_Editor
{
    public class Canvas
    {
        public Canvas(Graphics graphics)
        {
            this.graphics = graphics;
            this.bitmap = new Bitmap(100, 100, this.graphics);
        
            graphics.FillRectangle(Brushes.White, 0,0, 100, 100);
        }

        public Graphics Graphics
        {
            get 
            {
                return graphics;
            }
        }

        public bool GetPoint(int x, int y)
        {
            Color color = bitmap.GetPixel(x, y);

            return color == Color.Black;
        }

        private Graphics graphics;
        private Bitmap bitmap;
    }
}